<?php
include_once('../public/header.php');
$config = include('../../public/config/config.php');
include('../../public/func/db.php');
$where = 'where id='.$_GET['id'];
$res = select($config,'category',$where);
?>
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a>首页</a><span class="crumb-step">&gt;</span><a>分类管理</a><span class="crumb-step">&gt;</span><span>修改分类</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="/admin/category/doupdate.php" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <input type="hidden" name="id" value="<?php echo $res[0]['id'] ?>">
                    <table class="insert-tab" width="100%">
                        <tbody>
                            <tr>
                                <th><i class="require-red">*</i>标题：</th>
                                <td>
                                    <input class="common-text required" id="title" name="title" size="50" type="text" value="<?php echo $res[0]['title'] ?>">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>描述：</th>
                                <td>
                                    
                                    <textarea name="" id="" cols="57" rows="10"><?php echo $res[0]['describe'] ?></textarea>
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>状态：</th>
                                <td>
                                    <input type="radio" id="on" name="status" value=1 <?php echo ($res[0]['status']?'checked':'')?>>
                                    <label for="on">显示</label>
                                    &nbsp;&nbsp;
                                    <input type="radio" id="off" name="status" value=0 <?php echo ($res[0]['status']?'':'checked')?>><label for="off">隐藏</label>
                                </td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
</div>
</body>
</html>